package day0306;

import java.io.File;
import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        do {
            String name =scan.nextLine();
            File file = new File("./"+name);
            if (file.exists()){
                System.out.println("文件已存在");
            }else {
                file.mkdirs();
                System.out.println("创建成功");
                break;
            }
        } while (true);

    }
}
